3.14 \(\int (A+C \cos ^2(c+d x)) \sec ^6(c+d x) \, dx\)

Optimal. Leaf size=65 \[ \frac{(4 A+5 C) \tan ^3(c+d x)}{15 d}+\frac{(4 A+5 C) \tan (c+d x)}{5 d}+\frac{A \tan (c+d x) \sec ^4(c+d x)}{5 d} \]

[Out]

((4*A + 5*C)*Tan[c + d*x])/(5*d) + (A*Sec[c + d*x]^4*Tan[c + d*x])/(5*d) + ((4*A + 5*C)*Tan[c + d*x]^3)/(15*d)

________________________________________________________________________________________

Rubi [A]  time = 0.0435946, antiderivative size = 65, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {3012, 3767} \[ \frac{(4 A+5 C) \tan ^3(c+d x)}{15 d}+\frac{(4 A+5 C) \tan (c+d x)}{5 d}+\frac{A \tan (c+d x) \sec ^4(c+d x)}{5 d} \]

Antiderivative was successfully verified.

[In]

Int[(A + C*Cos[c + d*x]^2)*Sec[c + d*x]^6,x]

[Out]

((4*A + 5*C)*Tan[c + d*x])/(5*d) + (A*Sec[c + d*x]^4*Tan[c + d*x])/(5*d) + ((4*A + 5*C)*Tan[c + d*x]^3)/(15*d)

Rule 3012

Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_) + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(A*Cos[e
+ f*x]*(b*Sin[e + f*x])^(m + 1))/(b*f*(m + 1)), x] + Dist[(A*(m + 2) + C*(m + 1))/(b^2*(m + 1)), Int[(b*Sin[e
+ f*x])^(m + 2), x], x] /; FreeQ[{b, e, f, A, C}, x] && LtQ[m, -1]

Rule 3767

Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> -Dist[d^(-1), Subst[Int[ExpandIntegrand[(1 + x^2)^(n/2 - 1), x]
, x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]

Rubi steps

\begin{align*} \int \left (A+C \cos ^2(c+d x)\right ) \sec ^6(c+d x) \, dx &=\frac{A \sec ^4(c+d x) \tan (c+d x)}{5 d}+\frac{1}{5} (4 A+5 C) \int \sec ^4(c+d x) \, dx\\ &=\frac{A \sec ^4(c+d x) \tan (c+d x)}{5 d}-\frac{(4 A+5 C) \operatorname{Subst}\left (\int \left (1+x^2\right ) \, dx,x,-\tan (c+d x)\right )}{5 d}\\ &=\frac{(4 A+5 C) \tan (c+d x)}{5 d}+\frac{A \sec ^4(c+d x) \tan (c+d x)}{5 d}+\frac{(4 A+5 C) \tan ^3(c+d x)}{15 d}\\ \end{align*}

Mathematica [A]  time = 0.200543, size = 61, normalized size = 0.94 \[ \frac{A \left (\frac{1}{5} \tan ^5(c+d x)+\frac{2}{3} \tan ^3(c+d x)+\tan (c+d x)\right )}{d}+\frac{C \left (\frac{1}{3} \tan ^3(c+d x)+\tan (c+d x)\right )}{d} \]

Antiderivative was successfully verified.

[In]

Integrate[(A + C*Cos[c + d*x]^2)*Sec[c + d*x]^6,x]

[Out]

(C*(Tan[c + d*x] + Tan[c + d*x]^3/3))/d + (A*(Tan[c + d*x] + (2*Tan[c + d*x]^3)/3 + Tan[c + d*x]^5/5))/d

________________________________________________________________________________________

Maple [A]  time = 0.07, size = 58, normalized size = 0.9 \begin{align*}{\frac{1}{d} \left ( -A \left ( -{\frac{8}{15}}-{\frac{ \left ( \sec \left ( dx+c \right ) \right ) ^{4}}{5}}-{\frac{4\, \left ( \sec \left ( dx+c \right ) \right ) ^{2}}{15}} \right ) \tan \left ( dx+c \right ) -C \left ( -{\frac{2}{3}}-{\frac{ \left ( \sec \left ( dx+c \right ) \right ) ^{2}}{3}} \right ) \tan \left ( dx+c \right ) \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((A+C*cos(d*x+c)^2)*sec(d*x+c)^6,x)

[Out]

1/d*(-A*(-8/15-1/5*sec(d*x+c)^4-4/15*sec(d*x+c)^2)*tan(d*x+c)-C*(-2/3-1/3*sec(d*x+c)^2)*tan(d*x+c))

________________________________________________________________________________________

Maxima [A]  time = 1.01904, size = 58, normalized size = 0.89 \begin{align*} \frac{3 \, A \tan \left (d x + c\right )^{5} + 5 \,{\left (2 \, A + C\right )} \tan \left (d x + c\right )^{3} + 15 \,{\left (A + C\right )} \tan \left (d x + c\right )}{15 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((A+C*cos(d*x+c)^2)*sec(d*x+c)^6,x, algorithm="maxima")

[Out]

1/15*(3*A*tan(d*x + c)^5 + 5*(2*A + C)*tan(d*x + c)^3 + 15*(A + C)*tan(d*x + c))/d

________________________________________________________________________________________

Fricas [A]  time = 1.68914, size = 140, normalized size = 2.15 \begin{align*} \frac{{\left (2 \,{\left (4 \, A + 5 \, C\right )} \cos \left (d x + c\right )^{4} +{\left (4 \, A + 5 \, C\right )} \cos \left (d x + c\right )^{2} + 3 \, A\right )} \sin \left (d x + c\right )}{15 \, d \cos \left (d x + c\right )^{5}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((A+C*cos(d*x+c)^2)*sec(d*x+c)^6,x, algorithm="fricas")

[Out]

1/15*(2*(4*A + 5*C)*cos(d*x + c)^4 + (4*A + 5*C)*cos(d*x + c)^2 + 3*A)*sin(d*x + c)/(d*cos(d*x + c)^5)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((A+C*cos(d*x+c)**2)*sec(d*x+c)**6,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [A]  time = 1.15568, size = 77, normalized size = 1.18 \begin{align*} \frac{3 \, A \tan \left (d x + c\right )^{5} + 10 \, A \tan \left (d x + c\right )^{3} + 5 \, C \tan \left (d x + c\right )^{3} + 15 \, A \tan \left (d x + c\right ) + 15 \, C \tan \left (d x + c\right )}{15 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((A+C*cos(d*x+c)^2)*sec(d*x+c)^6,x, algorithm="giac")

[Out]

1/15*(3*A*tan(d*x + c)^5 + 10*A*tan(d*x + c)^3 + 5*C*tan(d*x + c)^3 + 15*A*tan(d*x + c) + 15*C*tan(d*x + c))/d